import request from '@/utils/request'

// 查询排课管理列表
export function listScheduling(query) {
  return request({
    url: '/jwxt/scheduling/list',
    method: 'get',
    params: query
  })
}

// 查询排课管理详细
export function getScheduling(scheduleId) {
  return request({
    url: '/jwxt/scheduling/' + scheduleId,
    method: 'get'
  })
}

// 新增排课管理
export function addScheduling(data) {
  return request({
    url: '/jwxt/scheduling',
    method: 'post',
    data: data
  })
}

// 修改排课管理
export function updateScheduling(data) {
  return request({
    url: '/jwxt/scheduling',
    method: 'put',
    data: data
  })
}

// 删除排课管理
export function delScheduling(scheduleId) {
  return request({
    url: '/jwxt/scheduling/' + scheduleId,
    method: 'delete'
  })
}

//获取所有学期
export function getSemesterList(){
  return request({
    url:'jwxt/semester/listAll',
    method:'GET'
  })
}

//获取当前学期
export function getCurSemester(){
  return request({
    url:'jwxt/utils/curSemester',
    method:'GET'
  })
}
